﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="list_film.aspx.cs" Inherits="Cinemax.ListFilm" %>

<asp:Content ID="Content2" ContentPlaceHolderID="title" runat="server">
    <title>Rạp Cinemax - Danh sách phim</title>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="menu_conent_place_holder" runat="server">
    <li><a href="home.aspx" id="A1">Trang chủ</a></li>
    <li><a href="list_film.aspx" id="A2" class="active">Phim</a></li>
    <li><a href="film_schedule.aspx" id="A3">Lịch chiếu/Đặt vé</a></li>
    <li><a href="ticket_promotion.aspx" id="A4">Giá vé &#38; Khuyến mãi</a></li>
    <li><a href="personalize.aspx" id="A5">Quản lý</a></li>
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="maincontent" runat="server">
    <div id="block2">
        <h2 class="titleFilm">
            Phim đang chiếu</h2>
        <div id="dangchieu" class="stepcarousel">
            <div class="belt" style="width: 520px;">
                <!-- BEGIN FilmList -->
                <%
                    foreach (Cinemax.DTO.PhimDTO item in lstFilms)
                    {
                        int index = lstFilms.IndexOf(item);
                        string val = (index * 130).ToString() + "px";
                %>
                <div class="movies" style="float: none; position: absolute; left: <%=val%>;">
                    <div class="bgimg01">
                        <a href="#">
                            <img alt="<%=item.TenPhim.ToUpper() %>" src="<%=item.HinhAnh %>" width="108" /></a>
                    </div>
                    <h4>
                        <a href="#">
                            <%=item.TenPhim.ToUpper() %></a></h4>
                </div>
                <%
                    }
                %>
                <!-- END FilmList -->
            </div>
        </div>
    </div>
    <%
        if (lstCommingSoonFilm.Count > 0)
        {
    %>
    <div class="block2">
        <h2 class="titleFilm">
            Phim sắp chiếu</h2>
        <div id="sapchieu" class="stepcarousel">
            <div class="belt" style="width: 520px;">
                <!-- BEGIN FilmList -->
                <%
                    foreach (Cinemax.DTO.PhimDTO item in lstCommingSoonFilm)
                    {
                        int index = lstCommingSoonFilm.IndexOf(item);
                        string val = (index * 130).ToString() + "px";
                %>
                <div class="movies" style="float: none; position: absolute; left: <%=val%>;">
                    <div class="bgimg01">
                        <a href="#">
                            <img alt="<%=item.TenPhim.ToUpper() %>" src="<%=item.HinhAnh %>" width="108" /></a>
                    </div>
                    <h4>
                        <a href="#">
                            <%=item.TenPhim.ToUpper() %></a></h4>
                </div>
                <%
                    }
                %>
                <!-- END FilmList -->
            </div>
        </div>
    </div>
    <%
        }
    %>
    <%
        if (lstShowedFilm.Count > 0)
        {
    %>
    <div class="block2">
        <h2  class="titleFilm">
            Phim đã chiếu</h2>
        <div id="dachieu" class="stepcarousel">
            <div class="belt" style="width: 520px;">
                <!-- BEGIN FilmList -->
                <%
                    foreach (Cinemax.DTO.PhimDTO item in lstShowedFilm)
                    {
                        int index = lstShowedFilm.IndexOf(item);
                        string val = (index * 130).ToString() + "px";
                %>
                <div class="movies" style="float: none; position: absolute; left: <%=val%>;">
                    <div class="bgimg01">
                        <a href="#">
                            <img alt="<%=item.TenPhim.ToUpper() %>" src="<%=item.HinhAnh %>" width="108" /></a>
                    </div>
                    <h4>
                        <a href="#">
                            <%=item.TenPhim.ToUpper() %></a></h4>
                </div>
                <%
                    }
                %>
                <!-- END FilmList -->
            </div>
        </div>
        <div>
            <img src="img/cont_box06b.jpg" alt="" /></div>
    </div>
    <% 
        }
    %>
</asp:Content>
